package com.example.yls.demoa;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;

public class StudentActivity extends AppCompatActivity {
    private EditText edtNo,edtName,edtBirth,edtPhone;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_student);
        edtNo=findViewById(R.id.edt_no);
        edtName=findViewById(R.id.edt_name);
        edtBirth=findViewById(R.id.edt_birth);
        edtPhone=findViewById(R.id.edt_phone);

        String No = getIntent().getStringExtra("NO");
        String Name = getIntent().getStringExtra("NAME");
        String Birth = getIntent().getStringExtra("BIRTH");
        String Phone = getIntent().getStringExtra("PHONE");

        edtNo.setText(No);
        edtName.setText(Name);
        edtBirth.setText(Birth);
        edtPhone.setText(Phone);


    }
}
